package jicheng;

public class zileigouzaoqitedian {
//    public  zileigouzaoqitedian(){
//        System.out.println("父类无参构造器比子类构造器启用的要早，有参构造器一样");
//    }
    public  zileigouzaoqitedian(int age){
        System.out.println("有参构造器启用了");

    }
}
class name extends  zileigouzaoqitedian{

    public name(){
        super(19);
        System.out.println("子类的无参构造器启用了");
    }
    public  name(String name){
        super(19);//调用父类有参构造器需要写在子类构造器中里面
        System.out.println("子类的有参构造器启用了");
    }

    public static void main(String[] args) {

        name sc =new name();
        name sc1 =new name("wu");
    }
}